#import <Foundation/Foundation.h>
#import "HTTPResponse.h"
#import "npk.h"

@class HTTPConnection;

@interface HTTPNPKFileResponse : NSObject <HTTPResponse>
{
	HTTPConnection *connection;
	
	NSString* filePath;
	NSString* elementName;
	
	UInt64 fileLength;
	UInt64 fileOffset;
	BOOL aborted;
	
	NPK_PACKAGE pack;
	NPK_ENTITY entity;

	void *buffer;
	NSUInteger bufferSize;
}

- (id)initWithFilePath:(NSString *)filePath elementName:(NSString*)elementName forConnection:(HTTPConnection *)connection;
- (NSString *)filePath;

@end